#include "Visitor.h"
#include "Element.h"
#include <iostream>

using namespace std;

Element::Element()
{}

Element::~Element()
{}

ConcreteElementA::ConcreteElementA()
{}

ConcreteElementA::~ConcreteElementA()
{}

void ConcreteElementA::Accept(Visitor *vis)
{
	vis->VisitConcreteElementA(this);
	cout << "visiting ConcreteElementA" << endl;
}

ConcreteElementB::ConcreteElementB()
{}

ConcreteElementB::~ConcreteElementB()
{}

void ConcreteElementB::Accept(Visitor *vis)
{
	vis->VisitConcreteElementB(this);
	cout << "visiting ConcreteElementB" << endl;
}